package com.ydj.app.protocol.http.oldcms;

import com.ydj.framework.protocol.JsonBaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Getter
public class CmsAccountCreateAccountReq extends JsonBaseRequest {

    @ApiModelProperty(value = "账号", required = true, example = "aefkjbawjknf")
    @NotBlank(message = "账号不能为空")
    @NotNull(message = "缺少账号")
    private String username;

    @ApiModelProperty(value = "名字", required = true, example = "aefkjbawjknf")
    @NotBlank(message = "名字不能为空")
    @NotNull(message = "缺少名字")
    @Length(max = 30, message = "名字不能超过30个字符")
    private String name;

    @ApiModelProperty(value = "是否启用", required = true)
    @NotNull(message = "缺少是否启动")
    private Boolean enable;

}